#python 时间
import time
from datetime import date,time,timedelta,datetime

"""
#时间撮
print(time.time())
#格式化时间
print(time.ctime())

print(time.ctime(time.time()-86640))
print(time.localtime())
print(time.strptime("2021-08-09","%Y-%m-%d"))
print(time.strftime('%Y-%m-%d %H:%M:%S',time.localtime()))
"""
'''
d = date.today()
print(d)
print(d.year)
print(d.month)
print(d.day)
print(d.h)
'''

td = datetime.now()
print(td)
print(timedelta(3))
print(td+timedelta(3))
print(td-timedelta(3))
time = td+timedelta(hours=3)
print(time.strftime("%Y-%m-%d %H:%M:%S"))





